using MediatR;
using System.ComponentModel.DataAnnotations;

namespace RabbitTraceability.Api.Applications.Command
{
    /// <summary>
    /// 删除保健信息命令
    /// </summary>
    public class DeleteHealthCareInfoCommand : IRequest<bool>
    {
        /// <summary>
        /// 保健编号
        /// </summary>
        [Required(ErrorMessage = "保健编号不能为空")]
        public string HealthCareId { get; set; }

        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="healthCareId">保健编号</param>
        public DeleteHealthCareInfoCommand(string healthCareId)
        {
            HealthCareId = healthCareId;
        }
    }
} 